#pragma once
#include "common/mavlink.h"

#ifdef __cplusplus
extern "C" {
#endif

// 解析函数
int parse_mavlink_message(
    const uint8_t* buffer,
    int length,
    mavlink_message_t* out_msg
);

// 打包示例：心跳
int pack_heartbeat(
    uint8_t system_id,
    uint8_t component_id,
    mavlink_message_t* out_msg
);

#ifdef __cplusplus
}
#endif
